package com.etc.cloud.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.client.RestTemplate;

/**
 * @Author kalista
 * @Description
 * @Date 2020/8/20  9:45
 **/
@RestController
@Slf4j
public class OrderController {

    private static  final String URL = "http://cloud-provider-paymentcounsul";


    @Autowired
    private RestTemplate restTemplate;


    @GetMapping("/consumer/payment/consul")
    public String paymentinfio(){
        return restTemplate.getForObject(URL + "/payment/consul",String.class);
    }


}
